﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Yaml.Presentation.Parsing {
    public class SimpleKey {
        int tokenNumber;
        bool required;
        Mark mark;

        public SimpleKey(int tokenNumber, bool required, Mark mark) {
            this.tokenNumber = tokenNumber;
            this.required = required;
            this.mark = mark;
        }

        public int TokenNumber { get { return this.tokenNumber; } }
        public bool Required { get { return this.required; } }
        public int Index { get { return this.mark.CharacterIndex; } }
        public int Line { get { return this.mark.Line; } }
        public int Column { get { return this.mark.Column; } }
        public Mark Mark { get { return this.mark; } }
    }
}
